Skip to content

Show loading status while preparing custom command prompts - #5733

Open
ileadall42 wants to merge 3 commits into
jesseduffield:masterfrom
ileadall42:codex/prompt-loading-text
Open

ileadall42 wants to merge 3 commits into
jesseduffield:masterfrom
ileadall42:codex/prompt-loading-text

Conversation

@ileadall42

Copy link
Copy Markdown

Summary

  • Add loadingText support to custom command prompts while resolving slow prompt values, loading suggestions, and generating menuFromCommand options.
  • Add output: commitMessagePanel, which sends custom command stdout into Lazygit's native commit message panel as the initial commit message.
  • Update docs, config validation, generated schema, and integration coverage.

Motivation

Custom commands can use slow commands to generate prompt values or commit messages. Before this change, users had no visible feedback while those prompt-generation commands were running, and custom commands could not hand generated commit text back to Lazygit's native commit summary/body UI.

This keeps the flow inside Lazygit and reuses the existing commit panel and commit logic instead of introducing a separate commit UI.

Validation

  • go test -count=1 ./pkg/gui/services/custom_commands ./pkg/config
  • go test pkg/integration/clients/*.go -run 'TestIntegration/custom_commands/'
  • env -u NO_COLOR TERM=xterm-256color go test ./... -short
  • ./scripts/golangci-lint-shim.sh run

evan and others added 3 commits June 27, 2026 08:48
Prompt templates can run user commands before the final custom command starts. When those commands are slow, lazygit previously looked idle because the existing command-level loading text only covered the final command execution. Wrap prompt resolution, suggestion loading, and menuFromCommand generation with the prompt's loading text so users get progress feedback during each synchronous prompt preparation step.
disinfeqt added a commit to disinfeqt/lazygit-ai-commit that referenced this pull request Aug 23, 2026
The subprocess approach fixed the missing loading indicator but at the
cost of dropping out of lazygit entirely, which is worse UX. Go back
to menuFromCommand + editable input, keeping the single-suggestion
change: enter to accept, esc + ctrl+g to regenerate. The blocking wait
without an indicator is a lazygit limitation (jesseduffield/lazygit#5733).

Claude-Session: https://claude.ai/code/session_012cYPeixmzBZSSt964y2tCV

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant